<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <title>品名设置</title>
    <link rel="stylesheet" href="http://static-online.zhaogangtest.com/publicresource/css/bootstrap-table.css">
    <link rel="stylesheet" href="http://static-online.zhaogangtest.com/publicresource/css/zTreeStyle.css">
    <link rel="stylesheet" href="http://static-online.zhaogangtest.com/publicresource/control/daterangpicker/daterangepicker-bs3.css">
    <link rel="stylesheet" href="../../../resources/public/css/iconfont.min.css">
    <link rel="stylesheet" href="../../../resources/public/css/table.css">
    <link rel="stylesheet" href="../../../resources/public/css/scmstrap.css">
</head>

<body>
    <div class="leftside-sub">
        <div class="leftside-subTitle">字典类别</div>
        <div class="leftside-subinner">
            <div class="tree-wrap">
                <ul class="ztree" id="treedemo">
                </ul>
            </div>
        </div>
    </div>
    <div class="main main-sub">
        <!-- 条件区域 -->
        <!-- 按钮 -->
        <div class="operation">
            <!--             <div class="conditionbtn">
                <button class="scm-btn blue">
                    <i class="anticon icon-search1"></i>查询</button>
                <button class="scm-btn resetBtn">
                    <i class="anticon icon-delete"></i>重置</button>
            </div> -->
            <!-- 按钮组 -->
            <div class="scm-btn-group fr">
                <button class="scm-btn btn-add-item">
                    <i class="anticon icon-plus"></i>添加</button>
                <button class="scm-btn  btn-formula">
                    <i class="anticon icon-edit1"></i>公式</button>
                <button class="scm-btn btn-weight-range">
                    <i class="anticon icon-isv"></i>重量范围标准</button>
                <button class="scm-btn  btn-adjustment-table">
                    <i class="anticon icon-isv"></i>理算表</button>
                <button class="scm-btn btn-coefficient">
                    <i class="anticon icon-isv"></i>系数</button>
                <button class="scm-btn  btn-quanlity">
                    <i class="anticon icon-isv"></i>品质</button>
                <button class="scm-btn btn-standard">
                    <i class="anticon icon-isv"></i>标准</button>
                <button class="scm-btn  btn-material">
                    <i class="anticon icon-isv"></i>材质</button>
            </div>
        </div>
        <div class="box-table box-tableTr">
            <table class="table table-condensed" id="table-data"></table>
        </div>
    </div>
    <!-- 添加品名 -->
    <div class="layer-add-item" style="display: none;">
        <div class="main">
            <!-- 条件区域 -->
            <div class="form-list form-list-btn-inner nofloat">
                <div class="group group-double-column-style ">
                    <label><b class="must">*</b>品名名称</label>
                    <div class="scm-input-wrap">
                        <input type="text" class="scm-input">
                    </div>
                </div>
                <div class="group group-double-column-style ">
                    <label><b class="must">*</b>助记码</label>
                    <div class="scm-input-wrap">
                        <input type="text" class="scm-input">
                    </div>
                </div>
                <div class="group group-select group-double-column-style">
                    <label>计量方式</label>
                    <div class="selectshow selectshowAction scm-input-wrap">
                        <input type="text" class="scm-input hand" readonly="" placeholder="理计">
                    </div>
                    <ul class="select" style="display: none;">
                        <li>上海钢富信息科技有限公司上海钢富信息科技有限公司</li>
                        <li>上海钢找塑料</li>
                        <li>上海找油网信息科技</li>
                    </ul>
                </div>
                <div class="group group-select group-double-column-style">
                    <label>计价方式</label>
                    <div class="selectshow selectshowAction scm-input-wrap">
                        <input type="text" class="scm-input hand" readonly="" placeholder="重量">
                    </div>
                    <ul class="select" style="display: none;">
                        <li>上海钢富信息科技有限公司上海钢富信息科技有限公司</li>
                        <li>上海钢找塑料</li>
                        <li>上海找油网信息科技</li>
                    </ul>
                </div>
                <div class="group group-double-column-style">
                    <label>备注</label>
                    <div class="scm-input-wrap">
                        <input type="text" class="scm-input">
                    </div>
                </div>
                <div class="group group-double-column-style">
                    <label class="mycheckbox" style="margin-left: 64px;"><em></em>理算配置表</label>
                    <label class="mycheckbox"><em></em>重量标准</label>
                </div>
                <div class="group double-column-input-style popup-multiple-checkbox-style">
                    <label>规格组合属性</label>
                    <div class="scm-input-wrap" style="margin-bottom: 7px;">
                        <label class="mycheckbox "><em></em>厚度</label>
                        <label class="mycheckbox "><em></em>宽度</label>
                        <label class="mycheckbox "><em></em>直径</label>
                        <label class="mycheckbox "><em></em>长度</label>
                    </div>
                </div>
                <div class="group double-column-input-style popup-multiple-checkbox-style">
                    <label>销售SKU属性</label>
                    <div class="scm-input-wrap" style="margin-bottom: 7px;">
                        <label class="mycheckbox "><em></em>品名</label>
                        <label class="mycheckbox "><em></em>材质</label>
                        <label class="mycheckbox "><em></em>标准</label>
                        <label class="mycheckbox "><em></em>规格</label>
                        <label class="mycheckbox "><em></em>品质</label>
                        <label class="mycheckbox "><em></em>计量方式</label>
                        <label class="mycheckbox "><em></em>交货状态</label>
                        <label class="mycheckbox "><em></em>厚度</label>
                        <label class="mycheckbox "><em></em>宽度</label>
                        <label class="mycheckbox "><em></em>长度</label>
                        <label class="mycheckbox "><em></em>是否定尺</label>
                        <label class="mycheckbox "><em></em>件支数</label>
                        <label class="mycheckbox "><em></em>产品类型</label>
                    </div>
                </div>
                <div class="group double-column-input-style popup-multiple-checkbox-style">
                    <label>生产SKU</label>
                    <div class="scm-input-wrap">
                        <label class="mycheckbox "><em></em>品名</label>
                        <label class="mycheckbox "><em></em>材质</label>
                        <label class="mycheckbox "><em></em>标准</label>
                        <label class="mycheckbox "><em></em>规格</label>
                        <label class="mycheckbox "><em></em>品质</label>
                        <label class="mycheckbox "><em></em>计量方式</label>
                        <label class="mycheckbox "><em></em>交货状态</label>
                        <label class="mycheckbox "><em></em>厚度</label>
                        <label class="mycheckbox "><em></em>宽度</label>
                        <label class="mycheckbox "><em></em>长度</label>
                        <label class="mycheckbox "><em></em>是否定尺</label>
                        <label class="mycheckbox "><em></em>件支数</label>
                        <label class="mycheckbox "><em></em>产品类型</label>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- 公式 -->
    <!-- <div class="layer-formula" style="display: none">
        <p class="layer-tips">
            <i class="anticon icon-exclamationcircle fs17 brown"></i>
            <span>确认废弃？</span>
        </p>
    </div> -->
    <!-- 公式 -->
    <div class="layer-formula" style="display: none">
        <div class="main">
            <!-- 条件区域 -->
            <div class="form-list form-list-btn-inner nofloat">
                <p class="layer-tips">
                    <span>+-*/()</span>
                </p>
                <div class="group group-double-column-style double-column-input-style">
                    <label>系数</label>
                    <div class="scm-input-wrap">
                        <input type="text" class="scm-input">
                    </div>
                </div>
                <div class="group group-select group-double-column-style">
                    <label>可用列名</label>
                    <div class="selectshow selectshowAction scm-input-wrap">
                        <input type="text" class="scm-input hand" readonly="" placeholder="全部">
                    </div>
                    <ul class="select" style="display: none;">
                        <li>上海钢富信息科技有限公司上海钢富信息科技有限公司</li>
                        <li>上海钢找塑料</li>
                        <li>上海找油网信息科技</li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <!-- 修改 -->
    <div class="layer-adjust-item" style="display: none;">
        <div class="main">
            <!-- 条件区域 -->
            <div class="form-list form-list-btn-inner nofloat">
                <div class="group group-double-column-style ">
                    <label><b class="must">*</b>字典名称</label>
                    <div class="scm-input-wrap">
                        <input type="text" class="scm-input" value="提单超开提示">
                    </div>
                </div>
                <div class="group group-double-column-style">
                    <label>状态</label>
                    <div class="scm-input-wrap mycheckradioall">
                        <label class="mycheckradio radio-popup-style"><em></em>禁用</label>
                        <label class="mycheckradio radio-popup-style  active"><em></em>启用</label>
                    </div>
                </div>
                <div class="group group-double-column-style ">
                    <label><b class="must">*</b>显示值</label>
                    <div class="scm-input-wrap">
                        <input type="text" class="scm-input" value="6">
                    </div>
                </div>
                <div class="group group-double-column-style double-column-input-style ">
                    <label>备注</label>
                    <div class="scm-input-wrap">
                        <textarea type="text" class="scm-input"></textarea>
                    </div>
                </div>
                <div class="group double-column-input-style">
                    <label>规格组合属性</label>
                    <div class="group group-multiple-checkbox">
                        <label class="mycheckbox "><em></em>销售部</label>
                    </div>
                    <div class="group group-multiple-checkbox">
                        <label class="mycheckbox "><em></em>中板下线点</label>
                    </div>
                    <div class="group group-multiple-checkbox">
                        <label class="mycheckbox "><em></em>中板计划科</label>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- 重量标准表 -->
    <div class="layer-weight-range" style="display: none;">
        <div class="main">
            <!-- 条件区域 -->
            <div class="form-list">
                <div class="group group-select">
                    <label>
                        <b class="must">*</b>产品类型</label>
                    <div class="selectshow selectshowAction scm-input-wrap">
                        <input type="text" class="scm-input hand" readonly="" placeholder="国际">
                    </div>
                    <ul class="select" style="display: none;">
                        <li>上海钢富信息科技有限公司上海钢富信息科技有限公司</li>
                        <li>上海钢找塑料</li>
                        <li>上海找油网信息科技</li>
                    </ul>
                </div>
                <div class="group">
                    <label>
                        <b class="must">*</b>直径</label>
                    <div class="scm-input-wrap">
                        <input type="text" class="scm-input">
                    </div>
                </div>
                <div class="group">
                    <label>
                        <b class="must">*</b>长度（米）</label>
                    <div class="scm-input-wrap">
                        <input type="text" class="scm-input">
                    </div>
                </div>
                <div class="group">
                    <label>
                        <b class="must">*</b>支数</label>
                    <div class="scm-input-wrap">
                        <input type="text" class="scm-input">
                    </div>
                </div>
                <div class="group group-select">
                    <label>
                        <b class="must">*</b>计量方式</label>
                    <div class="selectshow selectshowAction scm-input-wrap">
                        <input type="text" class="scm-input hand" readonly="" placeholder="理计">
                    </div>
                    <ul class="select" style="display: none;">
                        <li>上海钢富信息科技有限公司上海钢富信息科技有限公司</li>
                        <li>上海钢找塑料</li>
                        <li>上海找油网信息科技</li>
                    </ul>
                </div>
                <div class="group">
                    <label>
                        <b class="must">*</b>偏差下限</label>
                    <div class="scm-input-wrap">
                        <input type="text" class="scm-input">
                    </div>
                </div>
                <div class="group">
                    <label>
                        <b class="must">*</b>偏差上限</label>
                    <div class="scm-input-wrap">
                        <input type="text" class="scm-input">
                    </div>
                </div>
            </div>
            <!-- 按钮 -->
            <div class="operation">
                <div class="conditionbtn">
                    <button class="scm-btn">
                        <i class="anticon icon-addfile"></i>添加</button>
                    <button class="scm-btn blue">
                        <i class="anticon icon-search1"></i>查询</button>
                </div>
                <div class="scm-btn-group fr">
                    <button class="scm-btn">
                        <i class="anticon icon-delete"></i>删除
                    </button>
                    <button class="scm-btn">
                        <i class="anticon icon-isv"></i>导入
                    </button>
                    <button class="scm-btn">
                        <i class="anticon icon-download"></i>模板下载
                    </button>
                </div>
            </div>
            <div class="box-table">
                <table class="table table-condensed" id="layer-table-weightrange"></table>
            </div>
        </div>
    </div>
    <!-- 理算表 -->
    <div class="layer-adjustment-table" style="display: none;">
        <div class="main">
            <!-- 条件区域 -->
            <div class="form-list">
                <div class="group group-select">
                    <label>
                        <b class="must">*</b>产品类型</label>
                    <div class="selectshow selectshowAction scm-input-wrap">
                        <input type="text" class="scm-input hand" readonly="" placeholder="德标">
                    </div>
                    <ul class="select" style="display: none;">
                        <li>上海钢富信息科技有限公司上海钢富信息科技有限公司</li>
                        <li>上海钢找塑料</li>
                        <li>上海找油网信息科技</li>
                    </ul>
                </div>
                <div class="group">
                    <label>
                        <b class="must">*</b>直径</label>
                    <div class="scm-input-wrap">
                        <input type="text" class="scm-input">
                    </div>
                </div>
                <div class="group">
                    <label>
                        <b class="must">*</b>长度（米）</label>
                    <div class="scm-input-wrap">
                        <input type="text" class="scm-input">
                    </div>
                </div>
                <div class="group">
                    <label>
                        <b class="must">*</b>支数</label>
                    <div class="scm-input-wrap">
                        <input type="text" class="scm-input">
                    </div>
                </div>
                <div class="group">
                    <label>
                        <b class="must">*</b>理重</label>
                    <div class="scm-input-wrap">
                        <input type="text" class="scm-input">
                    </div>
                </div>
            </div>
            <!-- 按钮 -->
            <div class="operation">
                <div class="conditionbtn">
                    <button class="scm-btn">
                        <i class="anticon icon-addfile"></i>添加</button>
                    <button class="scm-btn blue">
                        <i class="anticon icon-search1"></i>查询</button>
                </div>
                <div class="scm-btn-group fr">
                    <button class="scm-btn">
                        <i class="anticon icon-delete"></i>删除
                    </button>
                    <button class="scm-btn">
                        <i class="anticon icon-isv"></i>导入
                    </button>
                    <button class="scm-btn">
                        <i class="anticon icon-download"></i>模板下载
                    </button>
                </div>
            </div>
            <div class="box-table">
                <table class="table table-condensed" id="layer-table-adjustment"></table>
            </div>
        </div>
    </div>
    <!-- 系数 -->
    <div class="layer-coefficient" style="display: none;">
        <div class="main">
            <!-- 条件区域 -->
            <div class="form-list">
                <div class="group">
                    <label>
                        <b class="must">*</b>规格</label>
                    <div class="scm-input-wrap">
                        <input type="text" class="scm-input">
                    </div>
                </div>
            </div>
            <!-- 按钮 -->
            <div class="operation">
                <div class="conditionbtn">
                    <button class="scm-btn blue">
                        <i class="anticon icon-search1"></i>查询</button>
                </div>
            </div>
            <div class="box-table">
                <table class="table table-condensed" id="layer-table-coefficient"></table>
            </div>
        </div>
    </div>
    <!-- 品质 -->
    <div class="layer-quanlity" style="display: none;">
        <div class="main">
            <!-- 条件区域 -->
            <div class="form-list">
                <div class="group">
                    <label>
                        <b class="must">*</b>品质名称</label>
                    <div class="scm-input-wrap">
                        <input type="text" class="scm-input">
                    </div>
                </div>
                <div class="group">
                    <label>
                        显示顺序</label>
                    <div class="scm-input-wrap">
                        <input type="text" class="scm-input">
                    </div>
                </div>
            </div>
            <!-- 按钮 -->
            <div class="operation">
                <div class="conditionbtn">
                    <button class="scm-btn blue">
                        <i class="anticon icon-search1"></i>查询</button>
                </div>
                 <div class="scm-btn-group fr">
                    <button class="scm-btn">
                        <i class="anticon icon-plus"></i>新建
                    </button>
                    <button class="scm-btn">
                        <i class="anticon icon-delete"></i>删除
                    </button>
                </div>
            </div>
            <div class="box-table">
                <table class="table table-condensed" id="layer-table-quanlity"></table>
            </div>
        </div>
    </div>
    <!-- 标准 -->
    <div class="layer-standard" style="display: none;">
        <div class="main">
            <!-- 条件区域 -->
            <div class="form-list">
                <div class="group">
                    <label>
                        <b class="must">*</b>标准名称</label>
                    <div class="scm-input-wrap">
                        <input type="text" class="scm-input">
                    </div>
                </div>
            </div>
            <!-- 按钮 -->
            <div class="operation">
                 <div class="scm-btn-group fr">
                    <button class="scm-btn btn-reorder-table">
                        <i class="anticon icon-retweet"></i>排序
                    </button>
                    <button class="scm-btn">
                        <i class="anticon icon-delete"></i>删除
                    </button>
                </div>
            </div>
            <div class="box-table">
                <table class="table table-condensed" id="layer-table-standard"></table>
            </div>
        </div>
    </div>
    <!-- 标准排序 -->
    <div class="layer-reorder-table" style="display: none;">
        <div class="main">
            <!-- 条件区域 -->
            <div class="form-list">
                <div class="group">
                    <label>
                        <b class="must">*</b>标准名称</label>
                    <div class="scm-input-wrap">
                        <input type="text" class="scm-input">
                    </div>
                </div>
            </div>
            <!-- 按钮 -->
            <div class="operation">
                 <div class="scm-btn-group fr">
                    <button class="scm-btn">
                        <i class="anticon icon-upcircleo"></i>上移
                    </button>
                    <button class="scm-btn">
                        <i class="anticon icon-downcircleo"></i>下移
                    </button>
                </div>
            </div>
            <div class="box-table">
                <table class="table table-condensed" id="layer-table-reoder"></table>
            </div>
        </div>
    </div>
    <!-- 材质 -->
    <div class="layer-material" style="display: none;">
        <div class="main">
            <!-- 条件区域 -->
            <div class="form-list">
                <div class="group">
                    <label>
                        <b class="must">*</b>材质名称</label>
                    <div class="scm-input-wrap">
                        <input type="text" class="scm-input">
                    </div>
                </div>
                <div class="group">
                    <label>
                        备注</label>
                    <div class="scm-input-wrap">
                        <input type="text" class="scm-input">
                    </div>
                </div>
            </div>
            <!-- 按钮 -->
            <div class="operation">
                 <div class="scm-btn-group fr">
                    <button class="scm-btn">
                        <i class="anticon icon-delete"></i>删除
                    </button>
                </div>
            </div>
            <div class="box-table">
                <table class="table table-condensed" id="layer-table-material"></table>
            </div>
        </div>
    </div>
    <script src="http://static-online.zhaogangtest.com/publicresource/js/require.js"></script>
    <script>
    require.config({
        paths: {
            "jquery": "../../../resources/public/js/jquery.min",
            "bootstrap": 'http://static-online.zhaogangtest.com/publicresource/js/bootstrap.min',
            "bootstrap-table": "../../../resources/public/js/bootstrap-table",
            "ztreecore": "http://static-online.zhaogangtest.com/publicresource/js/jquery.ztree.core.min",
            "ztreeexcheck": "http://static-online.zhaogangtest.com/publicresource/js/jquery.ztree.excheck.min",
            "moment": "http://static-online.zhaogangtest.com/publicresource/control/daterangpicker/moment.min",
            "daterangepicker": '../../../resources/public/js/daterangepicker',
            "layer": "http://static-online.zhaogangtest.com/publicresource/control/layer/layer.min",
            "public": "../../../resources/public/js/public",
            "chinese": "../../../resources/public/js/chinese",
        },
        shim: {
            "jquery": {
                exports: ['jQuery', '$']
            },
            "bootstrap": {
                deps: ["jquery"]
            },
            "bootstrap-table": {
                deps: ["jquery", "bootstrap"]
            },
            "ztreecore": {
                deps: ["jquery"],
            },
            "ztreeexcheck": {
                deps: ["jquery", "ztreecore"],
            },

            "moment": {
                deps: ["jquery"],
            },
            "daterangepicker": {
                deps: ["jquery", "moment"],
                exports: "daterangepicker"
            },
            "layer": {
                deps: ["jquery"],
                exports: "layer"
            },


            "public": {
                deps: ["jquery", "bootstrap-table", "moment", "daterangepicker"]
            },

            "chinese": {
                deps: ["jquery", "bootstrap-table"],
            },

        }
    });
    require(["public", "layer", "chinese", "ztreeexcheck"], function() {
        layer.config({
            path: 'http://static-online.zhaogangtest.com/publicresource/control/layer/'
        });
        $(function() {
            var page = {
                $table: $('#table-data'),
                init: function() {
                    this.bootstrapTable();
                    this.fn_layer();
                    this.fn_getTrData();
                    this.fn_zTree();

                    $(window).resize(function() {
                        page.$table.bootstrapTable('resetView', {
                            height: page.getHeight()
                        });
                    });
                    $.daterangepicker("#datepicker,#datepicker1,#datepicker2");
                },

                fn_layer: function() {
                    // 添加
                    $(document).on("click", ".btn-add-item", function() {
                        layer.open({
                            type: 1, //page层
                            area: ['700px', 'auto'],
                            title: '添加品名',
                            shadeClose: false,
                            btn: ['保存', '取消'],
                            shade: 0.01, //遮罩透明度
                            moveType: 1, //拖拽风格，0是默认，1是传统拖动
                            shift: -1, //0-6的动画形式，-1不开启
                            content: $('.layer-add-item'),
                            skin: "skin-searchMore skin-overflow",
                            yes: function() {
                                $('.layer-add').find('form').submit();
                            }
                        })
                    });
                    // 公式
                    $(document).on("click", ".btn-formula", function() {
                        layer.open({
                            type: 1, //page层
                            area: ['700px', 'auto'],
                            title: '公式',
                            shadeClose: false,
                            btn: ['保存', '取消'],
                            shade: 0.01, //遮罩透明度
                            moveType: 1, //拖拽风格，0是默认，1是传统拖动
                            shift: -1, //0-6的动画形式，-1不开启
                            content: $('.layer-formula'),
                            skin: "skin-searchMore skin-overflow",
                            yes: function() {
                                $('.layer-add').find('form').submit();
                            }
                        })
                    });
                    //重量范围标准
                    $(document).on("click", ".btn-weight-range", function() {
                        layer.open({
                            type: 1, //page层
                            area: ['800px', '550px'],
                            title: '重量标准表',
                            shadeClose: false,
                            btn: ['保存', '取消'],
                            shade: 0.01, //遮罩透明度
                            moveType: 1, //拖拽风格，0是默认，1是传统拖动
                            shift: -1, //0-6的动画形式，-1不开启
                            content: $('.layer-weight-range'),
                            skin: "skin-searchMore skin-overflow",
                            yes: function() {
                                $('.layer-table-weightrange').find('form').submit();
                            }
                        })
                        $('#layer-table-weightrange').bootstrapTable({
                            uniqueId: "id",
                            pagination: true, //在表格底部显示分页工具栏
                            pageSize: 50,
                            pageNumber: 1,
                            pageList: [10, 25, 50, 100],
                            height: 320,
                            // showFooter: true,
                            showColumns: false,
                            showRefresh: false,
                            //                    showToggle:true,
                            search: false,
                            //                    showPaginationSwitch:true,
                            // detailView: true,
                            // detailFormatter: page.showdetail,
                            // detailFormatter: this.showChild,
                            // onExpandRow: this.expandRow,
                            // onCollapseRow: this.collapseRow,
                            locales: 'zh-CN',
                            fixedColumns: false,
                            fixedNumber: 1,
                            url: '../data/erp/tablelist-description-setting-child.json',
                            sidePagination: "server", //分页方式：client客户端分页，server服务端分页（*）

                            columns: [{
                                "field": "n1",
                                "title": "产品类型",
                            }, {
                                "field": "n2",
                                "title": "直径",
                            }, {
                                "field": "n3",
                                "title": "长度（米）",
                            }, {
                                "field": "n4",
                                "title": "支数",
                            }, {
                                "field": "n5",
                                "title": "计量方式",
                            }, {
                                "field": "n6",
                                "title": "偏差下限（KG）",
                            }, {
                                "field": "n7",
                                "title": "偏差上限（KG）",
                                // footerFormatter: public.fn_sumformatter,
                            }]
                        });
                    });
                    //理算表
                    $(document).on("click", ".btn-adjustment-table", function() {
                        layer.open({
                            type: 1, //page层
                            area: ['800px', '550px'],
                            title: '理算表',
                            shadeClose: false,
                            btn: ['保存', '取消'],
                            shade: 0.01, //遮罩透明度
                            moveType: 1, //拖拽风格，0是默认，1是传统拖动
                            shift: -1, //0-6的动画形式，-1不开启
                            content: $('.layer-adjustment-table'),
                            skin: "skin-searchMore skin-overflow",
                            yes: function() {
                                $('.layer-table-adjustment').find('form').submit();
                            }
                        })
                        $('#layer-table-adjustment').bootstrapTable({
                            uniqueId: "id",
                            pagination: true, //在表格底部显示分页工具栏
                            pageSize: 50,
                            pageNumber: 1,
                            pageList: [10, 25, 50, 100],
                            height: 320,
                            // showFooter: true,
                            showColumns: false,
                            showRefresh: false,
                            //                    showToggle:true,
                            search: false,
                            //                    showPaginationSwitch:true,
                            // detailView: true,
                            // detailFormatter: page.showdetail,
                            // detailFormatter: this.showChild,
                            // onExpandRow: this.expandRow,
                            // onCollapseRow: this.collapseRow,
                            locales: 'zh-CN',
                            fixedColumns: false,
                            fixedNumber: 1,
                            url: '../data/erp/tablelist-description-setting-child2.json',
                            sidePagination: "server", //分页方式：client客户端分页，server服务端分页（*）

                            columns: [{
                                "field": "n1",
                                "title": "产品类型",
                            }, {
                                "field": "n2",
                                "title": "直径",
                            }, {
                                "field": "n3",
                                "title": "长度（米）",
                            }, {
                                "field": "n4",
                                "title": "支数",
                            }, {
                                "field": "n5",
                                "title": "理重（KG)",
                            }]
                        });
                    });
                    //系数
                    $(document).on("click", ".btn-coefficient", function() {
                        layer.open({
                            type: 1, //page层
                            area: ['800px', '550px'],
                            title: '系数',
                            shadeClose: false,
                            btn: ['保存', '取消'],
                            shade: 0.01, //遮罩透明度
                            moveType: 1, //拖拽风格，0是默认，1是传统拖动
                            shift: -1, //0-6的动画形式，-1不开启
                            content: $('.layer-coefficient'),
                            skin: "skin-searchMore skin-overflow",
                            yes: function() {
                                $('.layer-table-coefficient').find('form').submit();
                            }
                        })
                        $('#layer-table-coefficient').bootstrapTable({
                            uniqueId: "id",
                            pagination: true, //在表格底部显示分页工具栏
                            pageSize: 50,
                            pageNumber: 1,
                            pageList: [10, 25, 50, 100],
                            height: 320,
                            // showFooter: true,
                            showColumns: false,
                            showRefresh: false,
                            //                    showToggle:true,
                            search: false,
                            //                    showPaginationSwitch:true,
                            // detailView: true,
                            // detailFormatter: page.showdetail,
                            // detailFormatter: this.showChild,
                            // onExpandRow: this.expandRow,
                            // onCollapseRow: this.collapseRow,
                            locales: 'zh-CN',
                            fixedColumns: false,
                            fixedNumber: 1,
                            url: '../data/erp/tablelist-description-setting-child3.json',
                            sidePagination: "server", //分页方式：client客户端分页，server服务端分页（*）

                            columns: [{
                                "field": "n1",
                                "title": "品名",
                            }, {
                                "field": "n2",
                                "title": "材质",
                            }, {
                                "field": "n3",
                                "title": "标准",
                            }, {
                                "field": "n4",
                                "title": "规格",
                            }, {
                                "field": "n5",
                                "title": "系数",
                            }, {
                                "field": "n6",
                                "title": "备注",
                            }]
                        });
                    });
                    //品质
                    $(document).on("click", ".btn-quanlity", function() {
                        layer.open({
                            type: 1, //page层
                            area: ['800px', '550px'],
                            title: '品质',
                            shadeClose: false,
                            btn: ['保存', '取消'],
                            shade: 0.01, //遮罩透明度
                            moveType: 1, //拖拽风格，0是默认，1是传统拖动
                            shift: -1, //0-6的动画形式，-1不开启
                            content: $('.layer-quanlity'),
                            skin: "skin-searchMore skin-overflow",
                            yes: function() {
                                $('.layer-table-quanlity').find('form').submit();
                            }
                        })
                        $('#layer-table-quanlity').bootstrapTable({
                            uniqueId: "id",
                            pagination: true, //在表格底部显示分页工具栏
                            pageSize: 50,
                            pageNumber: 1,
                            pageList: [10, 25, 50, 100],
                            height: 320,
                            // showFooter: true,
                            showColumns: false,
                            showRefresh: false,
                            //                    showToggle:true,
                            search: false,
                            //                    showPaginationSwitch:true,
                            // detailView: true,
                            // detailFormatter: page.showdetail,
                            // detailFormatter: this.showChild,
                            // onExpandRow: this.expandRow,
                            // onCollapseRow: this.collapseRow,
                            locales: 'zh-CN',
                            fixedColumns: false,
                            fixedNumber: 1,
                            url: '../data/erp/tablelist-description-setting-child4.json',
                            sidePagination: "server", //分页方式：client客户端分页，server服务端分页（*）

                            columns: [{
                                "field": "n1",
                                "title": "品质",
                            }, {
                                "field": "n2",
                                "title": "显示顺序",
                            }, {
                                "field": "n3",
                                "title": "创建人",
                            }]
                        });
                    });
                    //标准排序
                    $(document).on("click", ".btn-reorder-table", function() {
                        layer.open({
                            type: 1, //page层
                            area: ['600px', '580px'],
                            title: '标准排序',
                            shadeClose: false,
                            btn: ['保存', '取消'],
                            shade: 0.01, //遮罩透明度
                            moveType: 1, //拖拽风格，0是默认，1是传统拖动
                            shift: -1, //0-6的动画形式，-1不开启
                            content: $('.layer-reorder-table'),
                            skin: "skin-searchMore skin-overflow",
                            yes: function() {
                                $('.layer-table-reorder').find('form').submit();
                            }
                        })
                        $('#layer-table-reoder').bootstrapTable({
                            uniqueId: "id",
                            pagination: true, //在表格底部显示分页工具栏
                            pageSize: 50,
                            pageNumber: 1,
                            pageList: [10, 25, 50, 100],
                            height: 320,
                            // showFooter: true,
                            showColumns: false,
                            showRefresh: false,
                            //                    showToggle:true,
                            search: false,
                            //                    showPaginationSwitch:true,
                            // detailView: true,
                            // detailFormatter: page.showdetail,
                            // detailFormatter: this.showChild,
                            // onExpandRow: this.expandRow,
                            // onCollapseRow: this.collapseRow,
                            locales: 'zh-CN',
                            fixedColumns: false,
                            fixedNumber: 1,
                            url: '../data/erp/tablelist-description-setting-child6.json',
                            sidePagination: "server", //分页方式：client客户端分页，server服务端分页（*）

                            columns: [{
                                "field": "n1",
                                "title": "标准名称",
                            }, {
                                "field": "n2",
                                "title": "创建人",
                            }]
                        });
                    });

                    //标准
                    $(document).on("click", ".btn-standard", function() {
                        layer.open({
                            type: 1, //page层
                            area: ['800px', '550px'],
                            title: '标准',
                            shadeClose: false,
                            btn: ['保存', '取消'],
                            shade: 0.01, //遮罩透明度
                            moveType: 1, //拖拽风格，0是默认，1是传统拖动
                            shift: -1, //0-6的动画形式，-1不开启
                            content: $('.layer-standard'),
                            skin: "skin-searchMore skin-overflow",
                            yes: function() {
                                $('.layer-table-standard').find('form').submit();
                            }
                        })
                        $('#layer-table-standard').bootstrapTable({
                            uniqueId: "id",
                            pagination: true, //在表格底部显示分页工具栏
                            pageSize: 50,
                            pageNumber: 1,
                            pageList: [10, 25, 50, 100],
                            height: 320,
                            // showFooter: true,
                            showColumns: false,
                            showRefresh: false,
                            //                    showToggle:true,
                            search: false,
                            //                    showPaginationSwitch:true,
                            // detailView: true,
                            // detailFormatter: page.showdetail,
                            // detailFormatter: this.showChild,
                            // onExpandRow: this.expandRow,
                            // onCollapseRow: this.collapseRow,
                            locales: 'zh-CN',
                            fixedColumns: false,
                            fixedNumber: 1,
                            url: '../data/erp/tablelist-description-setting-child5.json',
                            sidePagination: "server", //分页方式：client客户端分页，server服务端分页（*）

                            columns: [{
                                "field": "n1",
                                "title": "品质",
                            }, {
                                "field": "n2",
                                "title": "创建人",
                            }]
                        });
                    });
                    //材质
                    $(document).on("click", ".btn-material", function() {
                        layer.open({
                            type: 1, //page层
                            area: ['800px', '550px'],
                            title: '材质',
                            shadeClose: false,
                            btn: ['保存', '取消'],
                            shade: 0.01, //遮罩透明度
                            moveType: 1, //拖拽风格，0是默认，1是传统拖动
                            shift: -1, //0-6的动画形式，-1不开启
                            content: $('.layer-material'),
                            skin: "skin-searchMore skin-overflow",
                            yes: function() {
                                $('.layer-table-material').find('form').submit();
                            }
                        })
                        $('#layer-table-material').bootstrapTable({
                            uniqueId: "id",
                            pagination: true, //在表格底部显示分页工具栏
                            pageSize: 50,
                            pageNumber: 1,
                            pageList: [10, 25, 50, 100],
                            height: 320,
                            // showFooter: true,
                            showColumns: false,
                            showRefresh: false,
                            //                    showToggle:true,
                            search: false,
                            //                    showPaginationSwitch:true,
                            // detailView: true,
                            // detailFormatter: page.showdetail,
                            // detailFormatter: this.showChild,
                            // onExpandRow: this.expandRow,
                            // onCollapseRow: this.collapseRow,
                            locales: 'zh-CN',
                            fixedColumns: false,
                            fixedNumber: 1,
                            url: '../data/erp/tablelist-description-setting-child7.json',
                            sidePagination: "server", //分页方式：client客户端分页，server服务端分页（*）

                            columns: [{
                                "field": "n1",
                                "title": "名称",
                            }, {
                                "field": "n2",
                                "title": "备注",
                            }]
                        });
                    });
                    // 废弃
                    $(document).on('click', '.btn-discard', function() {
                        var index = layer.open({
                            type: 1, //page层
                            area: ['400px', 'auto'],
                            title: '提示',
                            shadeClose: false,
                            btn: ['确定', '取消'],
                            shade: 0.01, //遮罩透明度
                            moveType: 1, //拖拽风格，0是默认，1是传统拖动
                            shift: -1, //0-6的动画形式，-1不开启
                            content: $('.layer-discard'),
                            skin: "skin-searchMore",
                            // 确定
                            yes: function(index) {
                                layer.close(index)


                            },
                            // 取消
                            btn2: function() {


                            }
                        })
                    })
                },
                bootstrapTable: function() {
                    page.$table.bootstrapTable({
                        pagination: true, //在表格底部显示分页工具栏
                        pageSize: 50,
                        pageNumber: 1,
                        pageList: [10, 25, 50, 100],
                        height: this.getHeight(),
                        showFooter: false,
                        showColumns: false,
                        showRefresh: false,
                        //                    showToggle:true,
                        search: false,
                        //                    showPaginationSwitch:true,
                        // detailView: true,
                        // detailFormatter: this.showChild,
                        // onExpandRow: this.expandRow,
                        // onCollapseRow: this.collapseRow,
                        locales: 'zh-CN',

                        uniqueId: "id",
                        fixedColumns: true,
                        url: '../data/erp/tablelist-description-setting.json',
                        sidePagination: "server", //分页方式：client客户端分页，server服务端分页（*）

                        columns: [{
                            "field": "n1",
                            "title": "品名名称",
                        }, {
                            "field": "n2",
                            "title": "品名代码",

                        }, {
                            "field": "n3",
                            "title": "助记码",
                        }, {
                            "field": "n4",
                            "title": "品类",

                        }, {
                            "field": "n5",
                            "title": "计量方式",

                        }, {
                            "field": "n6",
                            "title": "计价方式",

                        }, {
                            "field": "n7",
                            "title": "公式",

                        }, {
                            "field": "n8",
                            "title": "备注",

                        }, {
                            "field": "n9",
                            "title": "创建人",

                        }, {
                            "field": "n10",
                            "title": "创建时间",

                        }, {
                            "field": "n11",
                            "title": "最后修改人",

                        }, {
                            "field": "n12",
                            "title": "最后修改人",

                        }]
                    });
                },
                // 表格高度
                getHeight: function() {
                    var height = public.fn_tableHeight()
                    return $(window).height() - height;
                },
                //获取选中行数据
                fn_getTrData: function() {
                    $(document).on('click', '.box-tableTr .table tbody>tr', function() {
                        var id = $(this).closest('tr').attr('data-uniqueid');
                        if ($(this).hasClass('active')) {
                            var data = page.$table.bootstrapTable(
                                'getRowByUniqueId', id); //获取选中行的数据
                            console.log(data);

                        }

                    })

                },
                fn_zTree: function() {
                    var zNodes = [{
                        name: "品类",
                        open: false,
                        click: false,
                        nocheck: true,

                        children: [{
                            name: '中板',
                            click: false,
                            open: false,
                            nocheck: true,
                        }, {
                            name: '螺纹钢',
                            click: false,
                            open: false,
                            nocheck: true,
                        }, {
                            name: '盘螺',
                            click: false,
                            open: false,
                            nocheck: true,
                        }],
                    }]
                    var setting = {
                        view: {
                            showLine: false,
                            showIcon: false,
                            fontCss: setFontCss
                        },
                        callback: {
                            // beforeClick: beforeClick,
                        }
                    };

                    function beforeClick(treeId, treeNode, clickFlag) {
                        return (treeNode.click != false);
                    }
                    // 设置节点文字颜色
                    function setFontCss(treeId, treeNode) {
                        return treeNode.level == 0 ? {
                            "font-size": "14px"
                        } : {};
                    };

                    $(document).ready(function() {
                        $.fn.zTree.init($("#treedemo"), setting, zNodes);
                    });
                },

            }
            page.init();
        })

    })
    </script>
</body>

</html>